import { create } from 'zustand'
import { TypeSilder } from '../type/layout'
export const useBearStore = create<TypeSilder>(set => ({
  //菜单图标合并控制
  collapsed: false,
  //默认导航
  menuUrl: '/dashboard',
  //换肤控制

  isDark: false,
  changeSilder: () => set(state => ({ collapsed: !state.collapsed })),
  changeTheme: () => set((state) => ({ isDark: !state.isDark }))
}))
